<?php

/*
 * Conpany  :   MisaColor
 * Coder    :   cococo
 * Email    :   datduy89@gmail.com
 * Year     :   2012
 * Created on : 17-09-2012, 20:49:24
 */
class Config{
    
    private static $DB_NAME         =   "misa_milan";
    
    private static $SERVER_NAME     =   "localhost";
    
    private static $SERVER_USER     =   "root";
    
    private static $SERVER_PASS     =   "12345";
    
    private static $SET_NAME        =   "SET NAMES utf8";
    
    private static $TYPE_MYSQL      =   "pdo_mysql";
    
    public static function getDatabase(){
        return array(
            'host'      => self::$SERVER_NAME,
            'dbname'    => self::$DB_NAME,
            'username'  => self::$SERVER_USER,
            'password'  => self::$SERVER_PASS,
            'driver_options' => array(
                PDO::MYSQL_ATTR_INIT_COMMAND =>self::$SET_NAME
            )
        );
    }
    
    public static function getDBName(){
        return self::$DB_NAME;
    }
    
    public static function getHost(){
        return self::$SERVER_NAME;
    }
    
    public static function getUser(){
        return self::$SERVER_USER;
    }
    
    public static function getPassword(){
        return self::$SERVER_PASS;
    }
    
    public static function getTypeName(){
        return self::$SET_NAME;
    }
    
    public static function getTypeMsql(){
        return self::$TYPE_MYSQL;
    }
}
?>
